#ifndef COMMISSIONEMPLOYEE_H_INCLUDED
#define COMMISSIONEMPLOYEE_H_INCLUDED

#include<string>
using std::string;
class CommissionEmployee
{
public:
    CommissionEmployee(const string &, const string &, const string&,double=0.0, double=0.0);

    void setFirstName(const string &);
    string getFirstName() const;

    void setLastName(const string &);
    string getLastName() const;

    void setSocialSecurityNumber(const string &);
    string getSocialSecurityNumber() const;

    void setGrossSales(double);
    double getGrossSales() const;

    void setCommissionRate(double);
    double getCommissionRate() const;

    double earnings()const;     //calculate earnings
    void print() const;         // print CommissionEmployee object

protected:
//private:
    string firstName;
    string lastName;
    string socialSecurityNumber;
    double grossSales;      //gross weekly sales
    double commissionRate;  // commission percentage
};

#endif // COMMISSIONEMPLOYEE_H_INCLUDED
